#include "stdafx.h"
#include "win_function_wrapper.h"

_SSL_BEGIN
_SSWINOSL_BEGIN

win_function_wrapper::win_function_wrapper()
{
	init();
}

win_function_wrapper::~win_function_wrapper()
{
	uninit();
}

void win_function_wrapper::init()
{
	InitializeCriticalSectionEx = (PFNInitializeCriticalSectionEx)::GetProcAddress(
		::GetModuleHandle(_T("Kernel32.dll")),
		"InitializeCriticalSectionEx");
	GetTickCount64 = (PFNGetTickCount64)::GetProcAddress(
		::GetModuleHandle(_T("Kernel32.dll")),
		"GetTickCount64");
}

void win_function_wrapper::uninit()
{
	InitializeCriticalSectionEx = NULL;
	GetTickCount64 = NULL;
}

_SSWINOSL_END
_SSL_END

